package com.example.cstr.mapper;

import com.example.cstr.entity.StudyContain;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface StudyContainMapper {
    int deleteByPrimaryKey(Integer scId);

    int insert(StudyContain record);

    int insertSelective(StudyContain record);

    StudyContain selectByPrimaryKey(Integer scId);

    int updateByPrimaryKeySelective(StudyContain record);

    int updateByPrimaryKey(StudyContain record);

    List<StudyContain> selectAllStudyContain();

    List<StudyContain> selectBySc_work_idAndSc_etp_id(@Param("scWorkId") Integer sc_work_id, @Param("scEtpId") Integer sc_etp_id);

    List<StudyContain> selectAllByScWorkId(@Param("scWorkId") Integer scWorkId);

    Integer selectAfterExchangeStudyTimeByScWorkId(@Param("scWorkId") Integer scWorkId);

    List<StudyContain> selectBySc_etc_idAndSc_etp_id(@Param("scEtcId") Integer sc_etc_id, @Param("scEtpId") Integer sc_etp_id);
}